class AnimateEvents{
    static _events = []
    static Add(fun){
        this._events.push(fun);
    }
    static Del(fun){
        this._events.forEach(function(val,index,arr){
            if(val == fun){
                arr.splice(index,1);
            }
        })
    }
    static Run(){
        this._events.forEach(function(val,index,arr){
            val();
        })
    }
}

export {AnimateEvents}
